<?php
class Data_site_info_model extends CI_Model {

	var $id ;
	var $gmt_modified ;
	var $modifier ;
	var $site_name ;
	var $site_url ;
	var $telephone ;
	var $fax ;
	var $email ;
	var $address ;
	var $zipcode ;
	var $copyright ;
	var $index_title ;
	var $index_keyword ;
	var $index_desc ;
	var $publisher ;


	public function __construct() {
		$this->load->database();
	}

	/**
	 * 进行查询
	 */
	public function get(){
		$query = $this->db->get_where('site_info');
		return $query->row();
	}

	/**
	 * 将传入内容更新入库
	 */
	public function update($site_info) {
		$this->db->update('site_info', $site_info);
	}

}
?>